package com.dr.entity;

public class CommentVO {
	private String content;
	private Integer isReply;
	
	private Integer page;
	private Integer limit;
	private Integer offset;
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Integer getIsReply() {
		return isReply;
	}
	public void setIsReply(Integer isReply) {
		this.isReply = isReply;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getLimit() {
		if (limit==null) {
			return 10;
		}else {
			return limit;
		}
	}
	public void setLimit(Integer limit) {
		this.limit = limit;
	}
	public Integer getOffset() {
		if (page==null) {
			return 0;
		}else {
			return (page-1)*limit;
		}
	}
	public void setOffset(Integer offset) {
		this.offset = offset;
	}
	
}
